package com.eorchis.module.classauditinfo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import org.springframework.stereotype.Service;

import com.eorchis.core.basedao.entity.IBaseEntity;

import com.eorchis.core.basedao.dao.IDaoSupport;
import com.eorchis.core.service.impl.AbstractBaseService;
import com.eorchis.core.ui.commond.ICommond;

import com.eorchis.module.classauditinfo.dao.IClassAuditInfoDao;
import com.eorchis.module.classauditinfo.domain.ClassAuditInfo;
import com.eorchis.module.classauditinfo.querybean.ClassAuditInfoQueryBean;
import com.eorchis.module.classauditinfo.service.IClassAuditInfoService;
import com.eorchis.module.classauditinfo.ui.commond.ClassAuditInfoValidCommond;

/**
 * Title: ClassAuditInfoServiceImpl<br>
 * Description: 班级审核信息管理业务接口实现<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2013-12-31
 * @version $Revision$
 */
// 声明本类为Server实现类，声明bean名称
@Service(value = "com.eorchis.module.classauditinfo.service.impl.ClassAuditInfoServiceImpl")
public class ClassAuditInfoServiceImpl 
			extends AbstractBaseService 
		implements IClassAuditInfoService {
		
	@Autowired
	@Qualifier("com.eorchis.module.classauditinfo.dao.impl.ClassAuditInfoDaoImpl")
	private IClassAuditInfoDao classAuditInfoDao;
		

	public IDaoSupport getDaoSupport() {
		return classAuditInfoDao;
	}
	@SuppressWarnings("unchecked")
	public ClassAuditInfoValidCommond toCommond(IBaseEntity entity) {
		return new ClassAuditInfoValidCommond((ClassAuditInfo)entity);
	}
	@Override
	public ClassAuditInfoQueryBean getAuditInfoByClassId(
			ClassAuditInfoValidCommond vCommond) throws Exception {
		return classAuditInfoDao.getAuditInfoByClassId(vCommond);
	}
	
}
